<?php
session_start();
$path=$_SERVER["DOCUMENT_ROOT"]."/Clase/php/FORO/clases/";
if (!isset($_SESSION["USUSARI"])) header ("Location: ../index.php");
require_once ($path."Usuaris.php");
$usuari=new Usuaris();
$id=$usuari->obtenirID();

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo $_SESSION["USUSARI"];?></title>
<script type="text/javascript" src="../SCRIPTS/javascript.js"></script>
<link rel="stylesheet" type="text/css" href="../CSS/styles.css" />
<script> 
function drop(id){
	var con=confirm("Quieres darte de baja?");
		if (con) window.location="drop.php?id="+id;
}
</script>
</head>
<body>
<div class="contenedor">
	<?php include_once("../clases/menu2.php");?>
        <div class="resultat" onclick="window.location='./edit.php?id=<?php echo $id?>'"><div class="resultatItem" style="float:center;" >Modificar tu perfil.</div></div>
        <div class="resultat" onclick="window.location='./temes.php?id=<?php echo $id;?>'"><div class="resultatItem" style="float:center;" >Tus temas.</div></div>
        <div class="resultat" onclick="drop(<?php echo $id;?>)"><div class="resultatItem" style="float:center;">Eliminar cuenta.</div></div>
</div>
</body>
</html>